package com.zbkj.common.request.user;

import com.zbkj.common.validation.CreateValidatorGroup;
import com.zbkj.common.validation.UpdateValidatorGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Auther:
 * @Date: 2024/9/11 21:43
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "AdminPartnerSaveRequest对象", description = "服务端-合作伙伴保存请求对象")
public class AdminPartnerSaveRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("合伙人ID")
    @NotNull(groups = {UpdateValidatorGroup.class}, message = "合作伙伴ID参数不能为空")
    private Long id;

    @ApiModelProperty("手机号")
    @NotBlank(groups = {CreateValidatorGroup.class,UpdateValidatorGroup.class}, message = "手机号不能为空")
    private String phone;

    @ApiModelProperty("姓名")
    @NotBlank(groups = {CreateValidatorGroup.class,UpdateValidatorGroup.class}, message = "手机号不能为空")
    private String realName;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("邀请码")
    @NotBlank(groups = {CreateValidatorGroup.class}, message = "邀请码不能为空")
    private String inviteCode;

}
